package com.arpa.oms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import java.math.BigDecimal;

/**
 * <p>
 * OMS结算单明细修改dto
 * </p>
 *
 * @author LEO
 * @since 2020-11-17
 */
@Data
@ApiModel(value="OMS结算单明细修改dto", description="OMS结算单明细修改dto")
public class OmsSettlementItemEditDTO extends BasicEntity {


    @ApiModelProperty(value = "结算明细标识",required = true)
    private String code;

    @ApiModelProperty(value = "结算单号",required = true)
    private String settlementCode;

    @ApiModelProperty(value = "费用标识",required = true)
    private String expenseDetailCode;

    @ApiModelProperty(value = "原始本次结算金额",required = true)
    @Digits(integer = 20, fraction = 2, message = "请输入最多两位小数金额")
    private BigDecimal oldThisSettledMoney;

    @ApiModelProperty(value = "更新后本次结算金额",required = true)
    @Digits(integer = 20, fraction = 2, message = "请输入最多两位小数金额")
    private BigDecimal newThisSettledMoney;

    @ApiModelProperty(value = "减免金额")
    @Digits(integer = 20, fraction = 2, message = "请输入最多两位小数金额")
    private BigDecimal reduceMoney;
}
